
package com.be.beadmin.design.repository;

import com.be.beadmin.design.entity.Process;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author Jiahao Liu
* @date 2023-02-19
**/
public interface ProcessRepository extends JpaRepository<Process, String>, JpaSpecificationExecutor<Process> {

    Process findProcessByIdAndDelete(String id, Integer delete);

    Process findProcessById(String id);

    Process findProcessByProcessCode(String processCode);

    Process findProcessByProcessCodeAndDelete(String processCode, int delete);

    List<Process> findAllByDelete(Integer delete);

    Process findProcessByProcessNameAndDelete(String processName, int delete);
}